.class public Lrexsee/core/notification/NotificationArgumentsSheet;
.super Ljava/lang/Object;
.source "NotificationArgumentsSheet.java"


# instance fields
.field public alermfirsttime:Ljava/lang/String;

.field public alermname:Ljava/lang/String;

.field public alermrepeatinterval:Ljava/lang/String;

.field public argumentsText:Ljava/lang/String;

.field public autocancel:Z

.field public cancelable:Z

.field public command:Ljava/lang/String;

.field public forcerepeat:Z

.field public id:Ljava/lang/String;

.field public insistent:Z

.field public layout:Ljava/lang/String;

.field public lights:Z

.field public message:Ljava/lang/String;

.field public notificationafterexec:Z

.field public notificationimmediately:Z

.field public onlyalertonce:Z

.field public showlights:Z

.field public soundpath:Ljava/lang/String;

.field public sounds:Z

.field public startapplicationurl:Ljava/lang/String;

.field public ticker:Ljava/lang/String;

.field public timeplus:Ljava/lang/String;

.field public title:Ljava/lang/String;

.field public url:Ljava/lang/String;

.field public vibrate:Z


# direct methods
.method public constructor <init>()V
    .locals 5

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    const-string v4, "0"

    const-string v1, ""

    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 10
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->argumentsText:Ljava/lang/String;

    .line 12
    const-string v0, "auto"

    iput-object v0, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->id:Ljava/lang/String;

    .line 13
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->layout:Ljava/lang/String;

    .line 15
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->ticker:Ljava/lang/String;

    .line 16
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->title:Ljava/lang/String;

    .line 17
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->message:Ljava/lang/String;

    .line 18
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->url:Ljava/lang/String;

    .line 20
    const-string v0, "0"

    iput-object v4, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->timeplus:Ljava/lang/String;

    .line 21
    const-string v0, ""

    iput-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->soundpath:Ljava/lang/String;

    .line 23
    iput-boolean v3, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->cancelable:Z

    .line 24
    iput-boolean v3, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->autocancel:Z

    .line 25
    iput-boolean v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->insistent:Z

    .line 26
    iput-boolean v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->onlyalertonce:Z

    .line 27
    iput-boolean v3, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->showlights:Z

    .line 29
    iput-boolean v3, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->sounds:Z

    .line 30
    iput-boolean v3, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->lights:Z

    .line 31
    iput-boolean v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->vibrate:Z

    .line 97
    const-string v0, "notification"

    iput-object v0, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->command:Ljava/lang/String;

    .line 98
    const-string v0, "defaultAlerm"

    iput-object v0, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->alermname:Ljava/lang/String;

    .line 99
    const-string v0, "0"

    iput-object v4, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->alermfirsttime:Ljava/lang/String;

    .line 100
    const-string v0, "-1"

    iput-object v0, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->alermrepeatinterval:Ljava/lang/String;

    .line 101
    const-string v0, "rexsee:info"

    iput-object v0, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->startapplicationurl:Ljava/lang/String;

    .line 102
    iput-boolean v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->notificationimmediately:Z

    .line 103
    iput-boolean v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->notificationafterexec:Z

    .line 104
    iput-boolean v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->forcerepeat:Z

    .line 8
    return-void
.end method


# virtual methods
.method public getAlermFirstTime()J
    .locals 3

    .prologue
    .line 108
    :try_start_0
    iget-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->alermfirsttime:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v1

    .line 110
    :goto_0
    return-wide v1

    .line 109
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 110
    .local v0, "e":Ljava/lang/Exception;
    const-wide/16 v1, -0x1

    goto :goto_0
.end method

.method public getAlermRepeatInterval()J
    .locals 5

    .prologue
    const-wide/16 v3, -0x1

    .line 114
    iget-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->alermrepeatinterval:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    move-wide v1, v3

    .line 118
    :goto_0
    return-wide v1

    .line 116
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->alermrepeatinterval:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    int-to-long v1, v1

    goto :goto_0

    .line 117
    :catch_0
    move-exception v1

    move-object v0, v1

    .local v0, "e":Ljava/lang/Exception;
    move-wide v1, v3

    .line 118
    goto :goto_0
.end method

.method public getDefaults()I
    .locals 2

    .prologue
    .line 65
    const/4 v0, 0x0

    .line 66
    .local v0, "defaults":I
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->sounds:Z

    if-eqz v1, :cond_0

    or-int/lit8 v0, v0, 0x1

    .line 67
    :cond_0
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->vibrate:Z

    if-eqz v1, :cond_1

    or-int/lit8 v0, v0, 0x2

    .line 68
    :cond_1
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->lights:Z

    if-eqz v1, :cond_2

    or-int/lit8 v0, v0, 0x4

    .line 69
    :cond_2
    return v0
.end method

.method public getFlags()I
    .locals 2

    .prologue
    .line 56
    const/4 v0, 0x0

    .line 57
    .local v0, "flags":I
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->insistent:Z

    if-eqz v1, :cond_0

    or-int/lit8 v0, v0, 0x4

    .line 58
    :cond_0
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->cancelable:Z

    if-nez v1, :cond_1

    or-int/lit8 v0, v0, 0x20

    .line 59
    :cond_1
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->autocancel:Z

    if-eqz v1, :cond_2

    or-int/lit8 v0, v0, 0x10

    .line 60
    :cond_2
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->onlyalertonce:Z

    if-eqz v1, :cond_3

    or-int/lit8 v0, v0, 0x8

    .line 61
    :cond_3
    iget-boolean v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->showlights:Z

    if-eqz v1, :cond_4

    or-int/lit8 v0, v0, 0x1

    .line 62
    :cond_4
    return v0
.end method

.method public getId()I
    .locals 2

    .prologue
    .line 86
    invoke-virtual {p0}, Lrexsee/core/notification/NotificationArgumentsSheet;->getWhen()J

    move-result-wide v0

    long-to-int v0, v0

    invoke-virtual {p0, v0}, Lrexsee/core/notification/NotificationArgumentsSheet;->getId(I)I

    move-result v0

    return v0
.end method

.method public getId(I)I
    .locals 2
    .param p1, "defaultValue"    # I

    .prologue
    .line 90
    :try_start_0
    iget-object v1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->id:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 92
    :goto_0
    return v1

    .line 91
    :catch_0
    move-exception v1

    move-object v0, v1

    .local v0, "e":Ljava/lang/Exception;
    move v1, p1

    .line 92
    goto :goto_0
.end method

.method public getSound()Landroid/net/Uri;
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 72
    iget-object v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->soundpath:Ljava/lang/String;

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    move-object v2, v4

    .line 76
    :goto_0
    return-object v2

    .line 73
    :cond_0
    iget-object v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->soundpath:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    const-string v3, "file://"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    move-object v2, v4

    goto :goto_0

    .line 74
    :cond_1
    iget-object v2, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->soundpath:Ljava/lang/String;

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    .line 75
    .local v1, "uri":Landroid/net/Uri;
    new-instance v0, Ljava/io/File;

    invoke-virtual {v1}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 76
    .local v0, "file":Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v0}, Ljava/io/File;->isFile()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v0}, Ljava/io/File;->canRead()Z

    move-result v2

    if-eqz v2, :cond_2

    move-object v2, v1

    goto :goto_0

    :cond_2
    move-object v2, v4

    goto :goto_0
.end method

.method public getWhen()J
    .locals 5

    .prologue
    .line 80
    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iget-object v3, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->timeplus:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v3

    mul-int/lit16 v3, v3, 0x3e8

    int-to-long v3, v3

    add-long/2addr v1, v3

    .line 82
    :goto_0
    return-wide v1

    .line 81
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 82
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    goto :goto_0
.end method

.method public parseArguments(Ljava/lang/String;)Lrexsee/core/notification/NotificationArgumentsSheet;
    .locals 11
    .param p1, "arguments"    # Ljava/lang/String;

    .prologue
    const/4 v10, 0x0

    const-string v9, "="

    .line 34
    if-eqz p1, :cond_0

    const-string v6, ""

    invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 52
    :cond_0
    return-object p0

    .line 35
    :cond_1
    iput-object p1, p0, Lrexsee/core/notification/NotificationArgumentsSheet;->argumentsText:Ljava/lang/String;

    .line 36
    const-string v6, ";"

    invoke-virtual {p1, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 37
    .local v0, "argus":[Ljava/lang/String;
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_0
    array-length v6, v0

    if-ge v3, v6, :cond_0

    .line 38
    aget-object v6, v0, v3

    const-string v7, "="

    invoke-virtual {v6, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    if-gtz v6, :cond_3

    .line 37
    :cond_2
    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 39
    :cond_3
    aget-object v6, v0, v3

    aget-object v7, v0, v3

    const-string v8, "="

    invoke-virtual {v7, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v7

    invoke-virtual {v6, v10, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    .line 40
    .local v4, "key":Ljava/lang/String;
    aget-object v6, v0, v3

    aget-object v7, v0, v3

    const-string v8, "="

    invoke-virtual {v7, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v7

    add-int/lit8 v7, v7, 0x1

    invoke-virtual {v6, v7}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    .line 41
    .local v5, "value":Ljava/lang/String;
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v6

    if-eqz v6, :cond_2

    .line 42
    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_4

    const/4 v6, 0x1

    :goto_2
    invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    .line 44
    .local v1, "booleanValue":Ljava/lang/Boolean;
    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v6

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v7

    invoke-virtual {v6, p0, v7}, Ljava/lang/reflect/Field;->setBoolean(Ljava/lang/Object;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 45
    :catch_0
    move-exception v6

    move-object v2, v6

    .line 47
    .local v2, "e":Ljava/lang/Exception;
    :try_start_1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v6

    invoke-virtual {v6, p0, v5}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    .line 48
    :catch_1
    move-exception v6

    goto :goto_1

    .end local v1    # "booleanValue":Ljava/lang/Boolean;
    .end local v2    # "e":Ljava/lang/Exception;
    :cond_4
    move v6, v10

    .line 42
    goto :goto_2
.end method
